<?sjs
//
// Post page for a user
//
pow_include('service.sjslib');

var userName = pow_server.REQUEST['username'];
if (!userName) {
  aaErrorPage('Should have had a username parameter.');
} else if (!dbIsValidUserName(userName)) {
  aaErrorPage('User "' + userName + '" not known.');
} else {
  // TODO: it would be nice to put the output forms somewhere out of the 
  // server's externally-visible namespace.
  pow_include('postform.sjs');
}
?>
